package com.ls.pattern.structure.flyweight;

public class Main {
    public static void main(String[] args) {

        WebsiteFactory factory = new WebsiteFactory();
        WebSite webSite = factory.getWebSite("新闻");
        webSite.use(new User("pdd"));
        WebSite webSite2 = factory.getWebSite("新闻");
        System.out.println(webSite == webSite2);
    }
}
